
import Home from './Home.vue'
import WarpLeft from './component/comment/WarpLeft.vue'
import Login from './component/Login.vue'
import BannerIndex from './component/banner/Index.vue'
import WishpoolIndex from './component/wishpool/Index.vue'
import SysnewsIndex from './component/sysnews/Index.vue'
import BbsnewsIndex from './component/bbsnews/Index.vue'
import ActivityIndex from './component/activity/Index.vue'
import CommunityIndex from './component/community/Index.vue'


let routes = [
    {
        path: '/login',
        component: Login,
        name: '登陆',
        hidden: true
    },
    // {
    //     path: '/404',
    //     component: NotFound,
    //     name: '',
    //     hidden: true
    // },
    //{ path: '/main', component: Main },
    {
        path: '/',
        component: WarpLeft,
        name: 'wechat',
        title:'微信管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/main', component: Home, name: '主页', hidden: true,title:"主页" },
            { path: '/table', component: Home, name: 'Table',title:"Table" },
            { path: '/form', component: Home, name: 'Form',title:"Form" },
            { path: '/user', component: Home, name: '列表',title:"列表" },
        ]
    },
    {
        path: '/banner',
        name: '海报管理',
        component: WarpLeft,
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: 'index', component: BannerIndex, name: '所有海报'}
        ]
    },
    {
        path: '/wishpool',
        component: WarpLeft,
        name: '心愿池管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: 'index', component: WishpoolIndex, name: '所有心愿'}
        ]
    },
    {
        path: '/sysnews',
        component: WarpLeft,
        name: '系统文章管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: 'index', component: SysnewsIndex, name: '所有文章'}
        ]
    },
    {
        path: '/bbsnews',
        component: WarpLeft,
        name: '社区新闻',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: 'index', component: BbsnewsIndex, name: '所有新闻'}
        ]
    },
    {
        path: '/activity',
        component: WarpLeft,
        name: '活动管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: 'index', component: ActivityIndex, name: '所有活动'}
        ]
    },
    {
        path: '/community',
        component: WarpLeft,
        name: '社区管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: 'index', component: CommunityIndex, name: '所有社区'}
        ]
    },
    {
        path: '/setting',
        component: WarpLeft,
        name: 'community',
        title: '系统设置',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/index', component: Home, name: 'sysnewsIndex',title:'网站设置'},
            { path: '/add', component: Home, name: 'sysnewsAdd',title:'公众号设置'},
        ]
    },
];

export default routes;